home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / tcp / mufs_telnetd.lha / telnetd2_0.lha / telnetd-2.0 / source / NoReq.c next >
C/C++ Source or Header  |  1995-02-11  |  393b  |  20 lines

  1. /*
  2.  * NoReq disables requesters in the current shell.
  3.  * This code is public domain.
  4.  */
  5.  
  6.  
  7. #include <dos/dosextens.h>
  8. #include <proto/exec.h>
  9.  
  10. int startup(void)
  11. {
  12.         struct Process *Proc;
  13.         struct Library *SysBase;
  14.  
  15.         SysBase = *((struct Library **) 0x00000004);
  16.         Proc = (struct Process *) FindTask(NULL);
  17.         Proc->pr_WindowPtr = (APTR) -1L;
  18.         return (0);
  19. }
  20.